package tk.mybatis.springboot.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import tk.mybatis.springboot.entity.CustomizedTask;

import java.util.List;
import java.util.Map;

public interface TaskMapper {

    int saveTask(CustomizedTask task);

    List<CustomizedTask> getTaskByPoint(Map<String,Integer> poinMap);

    List<CustomizedTask> findAllTask();

    List<CustomizedTask> selectTaskByPage(RowBounds rowBounds,Map<String,Integer> map);

    int batchUpdate(@Param("list") List<CustomizedTask> list);
}
